package com.cblz.bd.common.core.entity.system;

import com.cblz.bd.common.core.entity.BaMenuRule;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * {@code @Name:} MenuTree
 * {@code @Description: }
 * {@code @Author:} by yanjieping
 * {@code @CreateDate:} 2022/11/10 - 周四
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MenuTree extends Tree<BaMenuRule>{
    /**
     * ID
     */
    private Integer id;

    /**
     * 上级菜单
     */
    private Integer pid;

    /**
     * 类型:menu_dir=菜单目录,menu=菜单项,button=页面按钮
     */
    private String type;

    /**
     * 认证标识
     */
    private String authorityIdentify;

    /**
     * 标题
     */
    private String title;

    /**
     * 规则名称
     */
    private String name;

    /**
     * 路由路径
     */
    private String path;

    /**
     * 图标
     */
    private String icon;

    /**
     * 菜单类型:tab=选项卡,link=链接,iframe=Iframe
     */
    private String menu_type;

    /**
     * Url
     */
    private String url;

    /**
     * 组件路径
     */
    private String component;

    /**
     * 缓存:0=关闭,1=开启
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer keepalive;

    /**
     * 扩展属性:none=无,add_rules_only=只添加为路由,add_menu_only=只添加为菜单
     */
    private String extend;

    /**
     * 备注
     */
    private String remark;

    /**
     * 权重(排序)
     */
    private Integer weigh;

    /**
     * 状态:0=禁用,1=启用
     */
    private Integer status;

    /**
     * 更新时间
     */
    private Long updatetime;
}
